package com.rtx.wms.std.so.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rtx.edi.model.api.bo.ApiMappingInfoBo;
import com.rtx.model.dto.edi.EdiInnerRequestDTO;
import com.rtx.wms.std.so.bean.ApiOrders;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wq
 * @since 2023-04-14
 */
public interface ApiOrdersService extends IService<ApiOrders> {

    /**
     * 新增出库单
     * @param whseid
     * @param apiOrders
     */
    void addApiOrders(String whseid, ApiOrders apiOrders,EdiInnerRequestDTO dto);

    /**
     * 出库单写入WMS
     * @param whseid
     * @param wrapper
     */
    List<ApiOrders> selectApiOrdersByWrapper(String whseid, Wrapper<ApiOrders> wrapper,ApiMappingInfoBo bo);

    /**
     * 更新出库单
     * @param update
     */
    void updateByWrapper(String whseid,LambdaUpdateWrapper<ApiOrders> update);
    
    /**
     * 
     * @param whseid
     * @param apiOrders
     */
    void deleteApiOrders(String whseid, ApiOrders apiOrders);
    
    /**
     * 获取没有明细出库单表头
     * @param whseid
     * @param wrapper
     * @return
     */
    List<ApiOrders>  selectApiOrdersByWrapperNoDetail(String whseid, Wrapper<ApiOrders> wrapper);
}
